import React from 'react'
import { graphql, useStaticQuery } from 'gatsby'
function Header() {
    const data = useStaticQuery(graphql`
    query {
      site(siteMetadata: {}) {
        siteMetadata {
          author
          title
        }
      }
    }
    `)
    return (
        <h2>{data.site.siteMetadata.title}</h2>
    )
}

export default Header